package com.lovey2.demo.service;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 描述
 *
 * @author huhaichao
 * @date 2018/5/7
 */
@FeignClient(value = "service-hi",fallback = HelloServiceHystric.class)

public interface HelloService {

    @RequestMapping(value = "/hi", method = RequestMethod.GET)
    String hiService(@RequestParam(value = "name") String name);

}
